<template>
  <div id="app">
    <el-row class="tac">
      <el-col :span="4">
        <el-menu
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item index="1">
            <i class="el-icon-menu"></i>
            <span slot="title" @click="dhb_monitor()">监控</span>
          </el-menu-item>
          <el-menu-item index="2">
            <i class="el-icon-setting"></i>
            <span slot="title" @click="dhb_client()">客户端</span>
          </el-menu-item>
        </el-menu>
      </el-col>

      <el-col :span="20">
        <router-view />
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "app",
  methods: {
    dhb_client() {
      this.$router.push("/");
    },
    dhb_monitor() {
       this.$router.push("/monitor");
    }
  },
};
</script>
